import { datas } from './fields.js'
let that
// 串口监听
export default {
	data() {
		return {
			...datas,
			lists: []
		}
	},
	computed: {},
	onShow() {
		uni.request({
			url: '/api/h5/getBorrowList',
			method: "POST",
			header: {},
			data: {
				"userId": uni.getStorageSync('userId')
			},
			success: (res) => {
				that.lists = res.data.data
			},
			fail: (err) => {
				console.error(err);
			}
		});
	},
	created() {
		that = this
	},
	onReady() {},
	onLoad(options) {
		that = this
		console.log(options)
	},
	methods: {
		changeMenu(e) {
			that.current = e
		},
		gotoInfo(item) {
			that.$common.navigateTo('/pages/audit/details/index')
		}
	}
}